﻿/*+===================================================================
File:      CStoneFallingPoint.h

Summary:   Định nghĩa lớp CStoneFallingPoint
===================================================================+*/

#ifndef _STONEFALLINGPOINT_H_
#define _STONEFALLINGPOINT_H_

#include "StoneFalling.h"

/*C+==================================================================
Class:    CStoneFallingPoint

Summary:  Lớp CStoneFallingPoint miêu tả đối tượng là những nơi mà
		  StoneFalling rơi.
==================================================================-C*/
class CStoneFallingPoint : public CMoveableObject
{
private:
	int m_nCurStoneIndex;
	CStoneFalling* m_stones[2];
	bool m_bInViewPort;
public:
	CStoneFallingPoint(D3DXVECTOR2 pos, int id, int typeID);
	~CStoneFallingPoint();

	void Update(float timeFrame);

	void UpdateCollision(vector<CGameObject*> vecGameObjs, float timeFrame);

	void Draw();

	CGameObject* GetCurrentStone();

	int GetCurrentIndex()
	{
		return m_nCurStoneIndex;
	}
};

#endif